pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let (mut a, mut b) = (1, 1);
    let mut sum = 0;

    // 生成斐波那契数列并累加奇数项
    while a <= threshold {
        if a % 2 != 0 {
            sum += a;
        }
        let next = a + b;
        a = b;
        b = next;
    }

    sum
}
